import React from 'react'
import { Route, Switch, Redirect } from 'react-router-dom'

// import HomeHok from './home/HomeHok'
import Home from './home/Home'
import List from './daka/dklist/container/List'
import Select from './daka/dkselect/container/Select'
import Template from './daka/dktemplate/container/Template'
import { Login } from './login/'
import WinDow from './xin/container/WinDow'
import DkInfo from './daka/dkinfo/container/DkInfo'
import New from './daka/dknew/container/New'
import WecHat from './xin/container/WecHat'


import PersonalInfo from './home/personalinfo/container/PersonalInfo'
import Portrait from './information/portrait/Portrait'
import Name from './information/name/Name'
import Emergency from './information/emergency/Emergency'
import Account from './information/account/Account' 
import QRcode from './information/code/QRcode'
import Survey from './survey/Survey'

// lxl
import Guidence1 from './guidence/Guidence1'
import Guidence2 from './guidence/Guidence2'
import Guidence3 from './guidence/Guidence3'
import Guidence4 from './guidence/Guidence4'
import Album from './album/Album'
import Level from './level/Mylevel'
// import Calendar from ''
import Create from './newcreate/Newcreate'

// notice
import Notice from './notice/Notice'
import ForwardNotice from './notice/forwardNotice/ForwardNotice'
import HistoryNotice from './notice/historyNotice/container/HistoryNotice'
import NoticeDetail from './notice/noticeDetail/NoticeDetail'
import NoticeCommon from './notice/noticeCommon/NoticeCommon'
import Eduhlep from './notice/eduhlep/Eduhlep'
import Skin from './notice/edupant/Skin'

// homework
import Lesson from './Lessonpre/LessonHome/container/LessonHome'
import Courseware from './Lessonpre/courseware/Courseware'
import ShowCourse from './Lessonpre/showCourses/ShowCourse'
import SelectModel from './Lessonpre/selectmodle/contanier/SelectModel'
import Kepreview from './Lessonpre/kePreview/contanier/Kepreview'


// homeWork
import Assionwork from './homework/assignwork/contanir/AssignWork'
import Reacmodel from './homework/readmodel/contanir/Reacmodel'
import Publishwork from './homework/pulishwork/contanir/Publishwork'

// CheckList
import CheckList from './checkwork/checklist/contanir/CheckList';
import Detail from './checkwork/checkdetail/contanir/Detail'

import Wxpay from './home/homepage/ui/Wxpay'
import Paysucc from './home/homepage/ui/Paysucc'


const App = (props) =>  {
    return (
        // <Home></Home>
        <Switch>
            <Route path="/home" component={Home}></Route>
            <Route path="/portrait" component={Portrait}></Route>
            <Route path="/name" component={Name}></Route>
            <Route path="/emergency" component={Emergency}></Route>
            <Route path="/account" component={Account}></Route>
            <Route path="/qrcode" component={QRcode}></Route>
            <Route path="/personalinfo" component={PersonalInfo}></Route>
            <Route path="/survey" component={Survey}></Route>

            <Route path="/guidence1" component={Guidence1}></Route>
            <Route path="/guidence2" component={Guidence2}></Route>
            <Route path="/guidence3" component={Guidence3}></Route>
            <Route path="/guidence4" component={Guidence4}></Route> 
            <Route path="/album" component={Album}></Route>
            <Route path="/level" component={Level}></Route>
            {/* <Route path="/calendar" component={Calendar}></Route> */}
            <Route path="/create" component={Create}></Route>

            <Route path="/notice" component={Notice}></Route>
            <Route path="/forwardNotice" component={ForwardNotice}></Route>
            <Route path="/historyNotice" component={HistoryNotice}></Route>
            <Route path="/noticeDetail" component={NoticeDetail}></Route>
            <Route path="/noticeCommon" component={NoticeCommon}></Route>
            <Route path="/eduhlep" component={Eduhlep}></Route>
            <Route path="/edupant" component={Skin}></Route>
            <Route path="/wechat" component={WecHat}></Route>
            

            <Route path='/lesson' component={ Lesson }></Route>
            <Route path='/course' component={ Courseware }></Route>
            <Route path='/show' component={ ShowCourse }></Route>
            <Route path='/model' component={ SelectModel }></Route>
            <Route path='/preview' component={ Kepreview }></Route>
            <Route path='/assionwork' component={ Assionwork }></Route>
            <Route path='/readmodel' component={ Reacmodel }></Route>
            <Route path='/publish' component={ Publishwork }></Route>
            <Route path='/check' component={ CheckList }></Route>
            <Route path='/detail' component={ Detail }></Route>
            

            <Route path="/dklist" component={List}></Route>
            <Route path="/select" component={Select}></Route>
            <Route path="/dktemplate" component={Template}></Route>
            <Route path="/dkinfo" component={DkInfo}></Route>
            <Route path="/dknew" component={New}></Route>
            <Route path="/login" component={Login}></Route>
            <Route path="/window" component={WinDow}></Route>

            
            <Route path="/wxpay" component={Wxpay}></Route>
            <Route path="/paysucc" component={Paysucc}></Route>



            
            <Redirect from="/" to="/guidence1" ></Redirect>
        </Switch>
    )
}

export default App
